package com.wenxixuanwu.fruitstore.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author :小凡凡
 * @version :1.0
 * @Project :fruitstore
 * @Date :2022/5/7
 */
@Data
public class Cart implements Serializable {
    private Integer cid;//购物车数据id
    private Integer uid;//用户id
    private Integer pid;//商品id
    private Double price;//加入时商品单价
    private Integer num;//商品数量
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date created;//创建时间
}
